/** 美工任务管理提示**/
$(function () {
    var i = 1, status = 0, data = '', title = document.title;
    var setData = function (d) {
        data = d;
    }
    /**
     * 获取信息
     */
    var artist = function () {
        $.getJSON(setting.app + '/Task/Material/artist', function (data) {
            status = data.status;
            setData(data.data);
        });
    };
    /**
     * 设置标题
     */
    var artistTitle = function () {
        if (status) {
            document.title = data;
            if (i == 1) {
                document.title = "[" + data + "]" + title;
            } else {
                document.title = "[◇◇◇◇◇◇]" + title;
            }
            i = i == 1 ? 2 : 1;
        } else {
            document.title = title;
        }
    };
    $('body').everyTime('5s', 'A', artist);
    $('body').everyTime('1s', 'B', artistTitle);
});